import {
  post, get
} from './http'
// let post = require('./http2').post

const postList = {
  login: '/login', // 用户登录
  logout: '/logout' // 用户登出
}
const getList = {
  getlunbo: '/api/getlunbo'
}
var apis = {}
for (let k in postList) {
  apis[k] = (params, headers) => post(postList[k], params, headers)
}
for (let k in getList) {
  apis[k] = (params, headers) => get(getList[k], params)
}

export default apis
